package com.robot.command;

import iqq.im.bean.QQMsg;

import com.robot.core.Context;

public class SetActor extends CommandAcotr{
	public SetActor(Context context, QQMsg msg) {
		super(context, msg);
	}

	@Override
	public void execute() {
		String msgStr = msg.getFrom().getNickname()+"：";
		boolean validate = true;
		
		if(validate){
			context.getConfig().put(param1, param2);
			msgStr += param1+"设置为【"+param2+"】成功。";
		}else{
			msgStr += param1+"设置失败(参数有误)。";
		}
		replyQQMsg(msgStr);
         
	}

}
